package com.mep.auth.feign;

import com.mep.auth.model.SysDept;
import com.mep.common.http.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "story-auth/dept", path = "/")
public interface IFeignSysDeptApi {
//    @ApiOperation(value="01.保存dept",notes="问题点:保存dept")
//    @ApiOperationSupport(order = 1, author = "lyl")
    @PostMapping(value="/save")
    HttpResult save(@RequestBody SysDept record);

//    @ApiOperation(value="02.删除dict",notes="问题点:删除dict")
//    @ApiOperationSupport(order = 2, author = "lyl")
    @PostMapping(value="/delete")
    HttpResult delete(@RequestBody List<SysDept> records);

//    @ApiOperation(value="03.查询dept树数据",notes="问题点:查询dept树数据")
//    @ApiOperationSupport(order = 3, author = "lyl")
    @PostMapping(value="/findTree")
    HttpResult findTree();
}
